package com.pulisher.service.impl;

import com.pulisher.bean.TradeProvinceCt;
import com.pulisher.bean.TradeScCt;
import com.pulisher.mapper.TradeStatsMapper;
import com.pulisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;
@Service
public class TradeStatsServiceImpl implements TradeStatsService {
    @Autowired
    TradeStatsMapper tradeStatsMapper;
    @Override
    public List<TradeScCt> getScCt(Integer date) {
        return tradeStatsMapper.selectScAmount(date);
    }

    @Override
    public List<TradeProvinceCt> getProvinceCt(Integer date) {
        return tradeStatsMapper.selectProvinceAmount(date);
    }
}
